package com.hippy.erya.core.schedue.spring;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled;

public class SpringTasks {

    @Autowired
    private CostingJob costingJob;

    @Scheduled(cron = "0 0 1 1/1 * ? ")
    public void costing() {
        costingJob.startCosting();
    }
}